import { ref } from 'vue'
import { findBanner } from '@/api/home.js'
function useBanner() {
  const sliders = ref([])
  // 写后台数据代码
  async function loadSlider() {
    const res = await findBanner()
    sliders.value = res.result
  }
  loadSlider()
  return { sliders }
}
export default useBanner
